package com.xnew.file.service;

import com.xnew.bean.common.FileInfo;

import java.util.List;

/**
 * @Author yangcd
 * @Date 2020/12/23
 */
public interface FileCommonService {
    //保存附件信息
    void saveFileInfo(String businessType, String businessId, String filePath) throws Exception;

    //保存附件信息
    void batchSaveFileInfo(String businessType, String businessId, Object fileIds) throws Exception;

    //查询附件信息
    List<FileInfo> selectAllBusinessFile(String businessType, String businessId) throws Exception;

    //删除附件信息
    void deleteFileByFilePath(String filePath, String userId) throws Exception;

    //根据业务编号及业务类型删除附件信息
    void deleteFileByBusiness(String businessType, String businessId, String userId) throws Exception;

    /**
     * 根据多个业务id查询附件信息
     * @param ids
     * @return
     */
    List<FileInfo> selectByIds(String ids);
}
